<?php


namespace app\lunwen\controller;


use app\lunwen\model\StuTopicLogModel;
use app\lunwen\model\StuTopicModel;
use cmf\controller\HomeBaseController;

class StuShowTitleController extends HomeBaseController
{
    public function index(){

        echo session('beforeYear');
        echo "pppp";
        echo session('afterYear');
        $value = session('stu_name');


        $titleList = new StuTopicLogModel();
        $data = $titleList->where('stu_name',$value)
            ->whereTime('create_time','>',session('beforeYear'))
            ->whereTime('create_time','<',session('afterYear'))
            ->all();
        $this->assign('title',$data);
        return $this->fetch(':stuShowTitle');
    }
}